<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/javascript" src="../js/jquery-1.7.1.min.js"></script>
<script language=JavaScript src="../js/regcheckdata.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>添加用户</title>
<script type="text/javascript">
	function addUser(){
		var form = document.forms[0];
		form.action="/springMVC1/user/addUser";
		form.method="post";
		form.submit();
	}
</script>
</head>
	<body>
		<form name="form" action="01.html" method="get" onSubmit="return checkdata()">
			<table width="750" align="center" border="2">
				<tr>
					<td colspan="2" align="center">用户注册</td>
				</tr>
				<tr>
					<td>用户名：</td>
					<td>
						<input type=text name="userName" size="30" maxlength="10" onBlur="checkUserName(this.value.toLowerCase())">
						<div id="usernameErr"></div>
						<!--<span id="usernameErr"></span>-->
					</td>
				</tr>
				<tr>
					<td>密码：</td>
					<td>
						<input type=password name="password" size="15" maxlength="12">
					</td>
				</tr>
				
			
				
				<tr>
					<td>密码确认</td>
					<td>
						<input type=password name="pwd2" size="15" maxlength="12">
					</td>
				</tr>
				
						<tr>
					<td>年龄：</td>
					<td>
						<input type=text name="age" size="15" maxlength="12">
					</td>
				</tr>
				<tr>
					<td>性别</td>
					<td>
						<input type=radio name="sex" value="男">男
						<input type=radio name="sex" value="女">女
					</td>
				</tr>
				
				<tr>
					<td>你的科室</td>
					<td>
						<input type="checkbox" name="interest" value="呼吸内科" checked>呼吸内科
						<input type="checkbox" name="interest" value="神经内科">神经内科
						<input type="checkbox" name="interest" value="血液内科">血液内科
						<input type="checkbox" name="interest" value="高血压科">高血压科
						<br>
						<input type="checkbox" name="interest" value="心外科">心外科
						<input type="checkbox" name="interest" value="小儿外科">小儿外科
						<input type="checkbox" name="interest" value="康复医学科">康复医学科
						<input type="checkbox" name="interest" value="耳鼻喉科">耳鼻喉科
					</td>
				</tr>
				
				<!--必须选中JSP-->
				<input type="hidden" name="interest" value="jsp">
				
		
				
				<tr>
					<td>你来自</td>
					<td>
						<select name="province">
							<option value=0 selected>请选择</option>
							<option value=34>安徽</option>
							<option value=11>北京</option>
							<option value=50>重庆</option>
							<option value=35>福建</option>
							<option value=62>甘肃</option>
							<option value=44>广东</option>
							<option value=45>广西</option>
							<option value=52>贵州</option>
							<option value=46>海南</option>
							<option value=13>河北</option>
							<option value=23>黑龙江</option>
							<option value=41>河南</option>
							<option value=42>湖北</option>
							<option value=43>湖南</option>
							<option value=32>江苏</option>
							<option value=36>江西</option>
							<option value=22>吉林</option>
							<option value=21>辽宁</option>
							<option value=64>宁夏</option>
							<option value=15>内蒙古</option>
							<option value=63>青海</option>
							<option value=31>上海</option>
							<option value=14>山西</option>
							<option value=37>山东</option>
							<option value=51>四川</option>
							<option value=61>陕西</option>
							<option value=12>天津</option>
							<option value=54>西藏</option>
							<option value=65>新疆</option>
							<option value=53>云南</option>
							<option value=33>浙江</option>
							<option value=71>台湾</option>
							<option value=81>香港</option>
							<option value=82>澳门</option>
							<option value=0>其他</option>
						</select>
					</td>
				</tr>
				
				<tr>
					<td>介绍</td>
					<td>
						<textarea rows="12" cols="80" name="intro"></textarea>
					</td>
				</tr>
				
				<tr>
					<td></td>
					<td>
							
	 <input type="button" value="添加" onclick="addUser()">
			<input type="reset" value="重置">
					</td>
				</tr>
				
			</table>
		</form>
	</body>
</html>